#ifndef WEBINSPECTOR_H
#define WEBINSPECTOR_H

#include <QWidget>

namespace Jcr
{
class DownloadCenter;
class WebParser;
class SearchBar;
class WebInspector : public QWidget
{
    Q_OBJECT
public:
    explicit WebInspector(QWidget *parent = 0);

public slots:

signals:
    void download(const QUrl& url);

protected:
    QSize sizeHint() const;

private slots:
    void downloadUrl(const QUrl& url);
    void setDownloadCenterVisible(bool visible);

private:
    void init();

private:
    SearchBar* m_searchBar;
    WebParser* m_webParser;
    DownloadCenter* m_downloadCenter;
};

} // namespace
#endif // WEBINSPECTOR_H
